﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Devices.Sensors;

namespace TooMuchToDo.MiniGames
{
    public class Camera
    {
        private Vector2 _location;
        private Vector2 _size;

        public Camera(Vector2 location, Vector2 size)
        {
            _location = location;
            _size=size;  
        }

        public Vector2 Location
        {
            get { return _location; }
            set { _location = value; }
        }
        public Vector2 Size
        {
            get { return _size; }
            set { _size = value; }
        }

        public Matrix getMatrix()
        {
            
            return Matrix.CreateTranslation(new Vector3(_location.X, _location.Y, 0)) * Matrix.CreateScale(_size.X, _size.Y, 0);
        }
    }
}
